public class Main {
    public static void main(String[] args) {
        try{
//            Main main=new Main();
           ok();
        }catch(ArrayIndexOutOfBoundsException e){
            e.printStackTrace();
        }
        System.out.println("下面也会执行");
    }


    public static void ok()throws ArrayIndexOutOfBoundsException{
        int[] q=new int[10];
        System.out.println(q[100]);
    }
}